<template>
  <div class="search-suggestion">
       <van-cell title="hello jerry" icon="search" />
       <van-cell title="hello jerry" icon="search" />
       <van-cell title="hello jerry" icon="search" />
       <van-cell title="hello jerry" icon="search" />
  </div>
</template>

<script>
export default {
  name: 'searchSuggest',
  props: {
    searchText: {
      type: String,
      required: true
    }
  },
  watch: {
    searchText: {
      // 当 searchText 发生改变的时候就会调用 handler 方法
      handler (value) {
        console.log(value)
      },
      // 该回调将会在侦听开始以后被立即调用
      immediate: true
    }
  }
}

</script>

<style lang="less" scoped>
</style>